// 云函数register的代码
const uniID = require('uni-id')
exports.main = async function(event,context) {
  let username=event.queryStringParameters.username
  let password=event.queryStringParameters.password
   const res = await uniID.login({
           username,
           password,
       queryField: ['username', 'email', 'mobile']
       })
    return res
}